﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZX.OA.DAL;
using ZX.OA.Model;

namespace ZX.OA.BLL
{
    public class EmployeeInfoBLL
    {
        EmployeeInfoDAL dal = new EmployeeInfoDAL();
        /// <summary>
        /// 显示用户信息
        /// </summary>
        /// <returns></returns>
        public List<EmployeeInfo> ShowEmp()
        {
            return dal.ShowEmp();
        }
        /// <summary>
        /// 获取dept表id
        /// </summary>
        /// <returns></returns>
        public List<DeptInfo> GetDeptId()
        {
            return dal.GetDeptId();
        }
        /// <summary>
        /// 添加用户信息
        /// </summary>
        /// <param name="emp"></param>
        /// <returns></returns>
        public bool AddEmploylee(EmployeeInfo emp)
        {
            return dal.AddEmploylee(emp);
        }
        /// <summary>
        /// 删除用户信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool delEmployeeInfo(int id)
        {
            return dal.delEmployeeInfo(id);
        }
        /// <summary>
        /// 根据编号获取用户信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public EmployeeInfo getemp(int id)
        {
            return dal.getemp(id);
        }
        /// <summary>
        /// 修改用户信息
        /// </summary>
        /// <param name="emp"></param>
        /// <returns></returns>
        public bool uptemp(EmployeeInfo emp)
        {
            return dal.uptemp(emp);
        }
    }
}
